<html>
<head><meta charset="utf-8"><title>Disable inlay hints? · t-compiler/rust-analyzer · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/index.html">t-compiler/rust-analyzer</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Disable.20inlay.20hints.3F.html">Disable inlay hints?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="214232617"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Disable%20inlay%20hints%3F/near/214232617" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Martin Asquino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Disable.20inlay.20hints.3F.html#214232617">(Oct 22 2020 at 18:59)</a>:</h4>
<p>Hello folks! Just wondering, and apologies if this is answered somewhere, I did search but I couldn't find anything; can one disable the inlay hints extension server-side? What I mean by this is, can I send a workspace setting of some kind to disable them so as the client doesn't receive any? Or does the client have to control that feature being enabled/disabled?</p>



<a name="214232737"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Disable%20inlay%20hints%3F/near/214232737" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Disable.20inlay.20hints.3F.html#214232737">(Oct 22 2020 at 18:59)</a>:</h4>
<p>the server doesn't send the hints</p>



<a name="214232758"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Disable%20inlay%20hints%3F/near/214232758" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Disable.20inlay.20hints.3F.html#214232758">(Oct 22 2020 at 18:59)</a>:</h4>
<p>its the client who asks for hints</p>



<a name="214232834"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Disable%20inlay%20hints%3F/near/214232834" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> matklad <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Disable.20inlay.20hints.3F.html#214232834">(Oct 22 2020 at 19:00)</a>:</h4>
<p>this is controlled by <code>rust-analyzer.inlayHints.enable</code> client setting</p>



<a name="214233156"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Disable%20inlay%20hints%3F/near/214233156" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Martin Asquino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Disable.20inlay.20hints.3F.html#214233156">(Oct 22 2020 at 19:02)</a>:</h4>
<p>Right, makes sense. Thank you for the quick response! <span aria-label="+1" class="emoji emoji-1f44d" role="img" title="+1">:+1:</span></p>



<a name="214240662"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Disable%20inlay%20hints%3F/near/214240662" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Martin Asquino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Disable.20inlay.20hints.3F.html#214240662">(Oct 22 2020 at 19:59)</a>:</h4>
<p>I was browsing the code and I found that I can disable each hint individually, which would basically get me what I wanted right? (the server returning an empty array of hints)</p>



<a name="214241030"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/185405-t-compiler/rust-analyzer/topic/Disable%20inlay%20hints%3F/near/214241030" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Martin Asquino <a href="https://rust-lang.github.io/zulip_archive/stream/185405-t-compiler/rust-analyzer/topic/Disable.20inlay.20hints.3F.html#214241030">(Oct 22 2020 at 20:01)</a>:</h4>
<p>I think I'll add the <code>enable</code> config client-side anyways though</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>